package cn.ym.mall.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 员工类
 */
public class Staff implements Serializable {
    private Integer stid;        //员工编号
    private String staccount;   //员工账号
    private String stpwd;       //密码
    private String stname;      //员工姓名
    private LocalDateTime sthiredate; //入职时间

    public Staff(){}

    public Staff(String staccount, String stpwd, String stname, LocalDateTime sthiredate) {
        this.staccount = staccount;
        this.stpwd = stpwd;
        this.stname = stname;
        this.sthiredate = sthiredate;
    }

    public Staff(Integer stid, String staccount, String stpwd, String stname, LocalDateTime sthiredate) {
        this.stid = stid;
        this.staccount = staccount;
        this.stpwd = stpwd;
        this.stname = stname;
        this.sthiredate = sthiredate;
    }

    public Integer getStid() {
        return stid;
    }

    public void setStid(Integer stid) {
        this.stid = stid;
    }

    public String getStaccount() {
        return staccount;
    }

    public void setStaccount(String staccount) {
        this.staccount = staccount;
    }

    public String getStpwd() {
        return stpwd;
    }

    public void setStpwd(String stpwd) {
        this.stpwd = stpwd;
    }

    public String getStname() {
        return stname;
    }

    public void setStname(String stname) {
        this.stname = stname;
    }

    public LocalDateTime getSthiredate() {
        return sthiredate;
    }

    public void setSthiredate(LocalDateTime sthiredate) {
        this.sthiredate = sthiredate;
    }

    @Override
    public String toString() {
        return "Staff{" +
                "stid=" + stid +
                ", staccount='" + staccount + '\'' +
                ", stpwd='" + stpwd + '\'' +
                ", stname='" + stname + '\'' +
                ", sthiredate=" + sthiredate +
                '}';
    }
}
